<template>
  <header id="header">
    <slot></slot>
    <h1>{{ title }}</h1>
  </header>
</template>

<script>
export default {
  name: "Header",
  props: {
    title: {
      type: String,
      default: "喵喵电影",
    },
  },
};
</script>

<style scoped lang="scss">
#header {
  height: 50px;
  background: #e54847;
  color: white;
  border-bottom: 1px solid #e54847;
  position: relative;
  h1 {
    font-size: 18px;
    line-height: 50px;
    text-align: center;
    font-weight: normal;
  }
  i {
    position: absolute;
    left: 5px;
    top: 50%;
    margin-top: -13px;
    font-size: 26px;
  }
}
</style>